<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
    <script type="text/javascript" src="../js/vue.js"></script>
</head>

<body>

    <div id="root">
        <h2 v-show="1===1">欢迎来到{{name}}</h2>
        <h2 v-show="1===2">欢迎来到{{name}}</h2>
        <h2 v-show="1===3">欢迎来到{{name}}</h2>

        <h2 v-if="1===3">欢迎来到{{age}}</h2>
        <h2 v-if="3===3">欢迎来到{{age}}</h2>
        <h2 v-if="2===2">欢迎来到{{age}}</h2>

        
    </div>
    <script type="text/javascript">
        const vm = new Vue({
            el: '#root',
            data:{
                name:'尚硅谷',
                age:'23',
                a:'true'
            }
        })
    </script>


</body>

</html>